# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Moritz Bunkus <moritz@bunkus.org>

pkgname=perl-cpan-meta-check
pkgver=0.017
pkgrel=1
pkgdesc="Verify requirements in a CPAN::Meta object"
arch=('any')
license=('PerlArtistic' 'GPL')
url='https://search.cpan.org/dist/CPAN-Meta-Check'
depends=('perl')
options=('!emptydirs')
source=("https://cpan.metacpan.org/authors/id/L/LE/LEONT/CPAN-Meta-Check-$pkgver.tar.gz")
sha512sums=('cbb71312e9efe35a5d08f2e41d0b32592765587125a57bb3396dbead5d280a7fdfa24991dcfdea6a1b3cc3efc3ad23bbc9cf52ada38e043625eea72b56f3d08d')

build() {
  cd CPAN-Meta-Check-$pkgver
  perl Makefile.PL INSTALLDIRS=vendor
  make
}

check() {
  cd CPAN-Meta-Check-$pkgver
  make test
}

package() {
  cd CPAN-Meta-Check-$pkgver
  make DESTDIR="$pkgdir" install
}

# vim:set ts=2 sw=2 et:
